# -*- mode: Awk; -*-  vim: set filetype=awk :

Simple Demo of Glee
Demo Glee Sept10 Timm

Problem
=======

Often, gawk programs pass round a set of variables between multiple
functions. This is an error prone process.

Solution
========

GLEE supports a simple macro that defines multiple variable names.

Example
=======

For example, after adding these lines to a file...

  Swap Person with name,age,shoesize
  Swap Car    with color,engine

then any _Person:p_ will expand to three variables
_p\_name, p\_age, p\_shoesize_.  Also, _p\__ expands to the same
variables.

This allows for the succinct transfer of data. Also, just by changing
the above _Swap_ statements, then we can change the variables
passed to all functions.

 Each Person has name,age,shoesize  have jobs,kids
 Each Car    has color,engine
 Each Db     have orders,suppliers

 function showPerson(Person:p,Car:c1,Car:c2,Db:b,  i,j) {
	for(i = 1;i <= shoesizep; i++) 
		print i 
	iLoveYou(p,c1,c2,b)
 } 

 BEGIN { print 23 }

See Also
========

@include numbers.glee
@include love.glee

Author
======

Tim Menzies
